import { createRouter, createWebHistory } from 'vue-router';


const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            component: () => import("../views/Home.vue"),
            name: 'home',
            children: [
                {
                    path: '/admin',
                    component: () => import("../views/Admin.vue"),
                },
                {
                    path: '/product',
                    component: () => import("../views/Product.vue"),
                }
            ]
        },
        {
            path: '/login',
            component: () => import("../views/Login.vue"),
            name: 'login'
        }
    ]
});

export default router;
